﻿<UserControl x:Class="SLVisifireApp.StackedColumn2D2"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="500" Height="300" xmlns:vc="clr-namespace:Visifire.Charts;assembly=SLVisifire.Charts">
    <Grid x:Name="LayoutRoot" Background="White">
        <vc:Chart Theme="Theme1" BorderBrush="Gray">

            <vc:Chart.Titles>
                <vc:Title Text="Total Revenues"/>
            </vc:Chart.Titles>

            <vc:Chart.AxesY>
                <vc:Axis Prefix="$" Title="Products Revenue"/>
                <vc:Axis AxisType="Secondary" Prefix="$" Title="Services Revenue"/>
            </vc:Chart.AxesY>

            <vc:Chart.Legends>
                <vc:Legend LabelMargin="5" EntryMargin="6"/>
            </vc:Chart.Legends>

            <vc:Chart.Series>
                <vc:DataSeries LegendText="Product A" RenderAs="StackedColumn" ToolTipText="Product A, #AxisXLabel, #YValue" Cursor="Hand">
                    <vc:DataSeries.DataPoints>
                        <vc:DataPoint AxisXLabel="1980" YValue="23453"/>
                        <vc:DataPoint AxisXLabel="1981" YValue="13453"/>
                        <vc:DataPoint AxisXLabel="1982" YValue="25078"/>
                        <vc:DataPoint AxisXLabel="1983" YValue="20564"/>
                        <vc:DataPoint AxisXLabel="1984" YValue="22033"/>
                        <vc:DataPoint AxisXLabel="1985" YValue="24022"/>
                        <vc:DataPoint AxisXLabel="1986" YValue="20564"/>
                        <vc:DataPoint AxisXLabel="1987" YValue="34056"/>
                        <vc:DataPoint AxisXLabel="1988" YValue="32400"/>
                        <vc:DataPoint AxisXLabel="1989" YValue="10393"/>
                        <vc:DataPoint AxisXLabel="1990" YValue="28745"/>
                        <vc:DataPoint AxisXLabel="1991" YValue="32024"/>
                        <vc:DataPoint AxisXLabel="1992" YValue="24021"/>
                        <vc:DataPoint AxisXLabel="1993" YValue="40534"/>
                        <vc:DataPoint AxisXLabel="1994" YValue="34036"/>
                        <vc:DataPoint AxisXLabel="1996" YValue="42000"/>
                        <vc:DataPoint AxisXLabel="1998" YValue="10293"/>
                        <vc:DataPoint AxisXLabel="1999" YValue="28745"/>
                        <vc:DataPoint AxisXLabel="2000" YValue="24365"/>
                        <vc:DataPoint AxisXLabel="2001" YValue="22024"/>
                        <vc:DataPoint AxisXLabel="2002" YValue="34021"/>
                        <vc:DataPoint AxisXLabel="2003" YValue="30534"/>
                        <vc:DataPoint AxisXLabel="2004" YValue="24036"/>
                        <vc:DataPoint AxisXLabel="2005" YValue="32000"/>
                        <vc:DataPoint AxisXLabel="2006" YValue="30293"/>
                        <vc:DataPoint AxisXLabel="2007" YValue="18745"/>
                        <vc:DataPoint AxisXLabel="2008" YValue="24365"/>
                    </vc:DataSeries.DataPoints>
                </vc:DataSeries>

                <vc:DataSeries LegendText="Product B" RenderAs="StackedColumn" ToolTipText="Product B, #AxisXLabel, #YValue" Cursor="Hand">
                    <vc:DataSeries.DataPoints>
                        <vc:DataPoint YValue="13048"/>
                        <vc:DataPoint YValue="22416"/>
                        <vc:DataPoint YValue="32342"/>
                        <vc:DataPoint YValue="13348"/>
                        <vc:DataPoint YValue="23447"/>
                        <vc:DataPoint YValue="12345"/>
                        <vc:DataPoint YValue="33342"/>
                        <vc:DataPoint YValue="25348"/>
                        <vc:DataPoint YValue="25832"/>
                        <vc:DataPoint YValue="17362"/>
                        <vc:DataPoint YValue="23463"/>
                        <vc:DataPoint YValue="21038"/>
                        <vc:DataPoint YValue="32018"/>
                        <vc:DataPoint YValue="27362"/>
                        <vc:DataPoint YValue="18363"/>
                        <vc:DataPoint YValue="23980"/>
                        <vc:DataPoint YValue="17362"/>
                        <vc:DataPoint YValue="23463"/>
                        <vc:DataPoint YValue="13280"/>
                        <vc:DataPoint YValue="11038"/>
                        <vc:DataPoint YValue="22018"/>
                        <vc:DataPoint YValue="37362"/>
                        <vc:DataPoint YValue="38363"/>
                        <vc:DataPoint YValue="23980"/>
                        <vc:DataPoint YValue="27362"/>
                        <vc:DataPoint YValue="13463"/>
                        <vc:DataPoint YValue="13280"/>
                    </vc:DataSeries.DataPoints>
                </vc:DataSeries>

                <vc:DataSeries LegendText="Service A" RenderAs="StackedColumn" AxisYType="Secondary" ToolTipText="Service A, #AxisXLabel, #YValue" Cursor="Hand">
                    <vc:DataSeries.DataPoints>
                        <vc:DataPoint YValue="13243"/>
                        <vc:DataPoint YValue="22334"/>
                        <vc:DataPoint YValue="30345"/>
                        <vc:DataPoint YValue="19899"/>
                        <vc:DataPoint YValue="15943"/>
                        <vc:DataPoint YValue="13344"/>
                        <vc:DataPoint YValue="20343"/>
                        <vc:DataPoint YValue="13458"/>
                        <vc:DataPoint YValue="14578"/>
                        <vc:DataPoint YValue="13456"/>
                        <vc:DataPoint YValue="11468"/>
                        <vc:DataPoint YValue="19273"/>
                        <vc:DataPoint YValue="25342"/>
                        <vc:DataPoint YValue="32435"/>
                        <vc:DataPoint YValue="23435"/>
                        <vc:DataPoint YValue="12325"/>
                        <vc:DataPoint YValue="10002"/>
                        <vc:DataPoint YValue="9000"/>
                        <vc:DataPoint YValue="8802"/>
                        <vc:DataPoint YValue="29273"/>
                        <vc:DataPoint YValue="15342"/>
                        <vc:DataPoint YValue="34935"/>
                        <vc:DataPoint YValue="13435"/>
                        <vc:DataPoint YValue="32325"/>
                        <vc:DataPoint YValue="20002"/>
                        <vc:DataPoint YValue="10000"/>
                        <vc:DataPoint YValue="9000"/>
                    </vc:DataSeries.DataPoints>
                </vc:DataSeries>

                <vc:DataSeries LegendText="Service B" RenderAs="StackedColumn" AxisYType="Secondary" ToolTipText="Service B, #AxisXLabel, #YValue" Cursor="Hand">
                    <vc:DataSeries.DataPoints>
                        <vc:DataPoint YValue="28920"/>
                        <vc:DataPoint YValue="40853"/>
                        <vc:DataPoint YValue="49567"/>
                        <vc:DataPoint YValue="38578"/>
                        <vc:DataPoint YValue="28340"/>
                        <vc:DataPoint YValue="30456"/>
                        <vc:DataPoint YValue="39263"/>
                        <vc:DataPoint YValue="28348"/>
                        <vc:DataPoint YValue="51345"/>
                        <vc:DataPoint YValue="18329"/>
                        <vc:DataPoint YValue="32889"/>
                        <vc:DataPoint YValue="30020"/>
                        <vc:DataPoint YValue="42001"/>
                        <vc:DataPoint YValue="50023"/>
                        <vc:DataPoint YValue="40020"/>
                        <vc:DataPoint YValue="52122"/>
                        <vc:DataPoint YValue="18329"/>
                        <vc:DataPoint YValue="32889"/>
                        <vc:DataPoint YValue="26030"/>
                        <vc:DataPoint YValue="40020"/>
                        <vc:DataPoint YValue="32001"/>
                        <vc:DataPoint YValue="41223"/>
                        <vc:DataPoint YValue="30020"/>
                        <vc:DataPoint YValue="42122"/>
                        <vc:DataPoint YValue="38329"/>
                        <vc:DataPoint YValue="22889"/>
                        <vc:DataPoint YValue="16030"/>
                    </vc:DataSeries.DataPoints>
                </vc:DataSeries>
            </vc:Chart.Series>
        </vc:Chart>
    </Grid>
</UserControl>
